/* ===================================================================
   favorites.css — استایل‌های اختصاصیِ صفحه علاقه‌مندی‌ها (favorites.html)
   هدر، فوتر، سایدبارها و خود کارت محصول (.product-card) در style.css
   هستند و اینجا تکرار نشده‌اند.
=================================================================== */

.favorites-page{
  padding: 32px 32px 64px;
}

/* کارت هنگام حذف‌شدن (کلیک روی قلب) با یک محو و کوچک‌شدن ملایم می‌رود،
   نه یک‌دفعه‌ای؛ چون style.css قبلاً روی .product-card ترنزیشن دیگری
   دارد، این‌جا opacity/transform را هم به‌صورت مستقل اضافه می‌کنیم */
.product-card{
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease, opacity .28s ease;
}

.product-card.is-removing{
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.favorites-empty-msg{
  display: none;
  text-align: center;
  padding: 60px 0;
  font-size: 13.5px;
  color: var(--text-faint);
}

.favorites-empty-msg.is-visible{ display: block; }

.favorites-empty-msg a{
  color: var(--gold-dim);
  font-weight: 700;
  margin-right: 4px;
}

.favorites-empty-msg a:hover{ color: var(--gold); }

/* ===================================================================
   صفحه‌بندی (مشابه cigars.html، مستقل تعریف شده)
=================================================================== */
.pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.page-btn{
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.page-btn:hover:not(:disabled){
  border-color: var(--gold-dim);
  color: var(--gold-dim);
}

.page-btn:disabled{
  opacity: 0.4;
  cursor: not-allowed;
}

.page-numbers{
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-number{
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.page-number:hover{
  background: var(--ember-blue-soft);
  color: var(--gold-dim);
}

.page-number.is-active{
  background: var(--gold);
  color: #ffffff;
}

.pagination.is-hidden{ display: none; }

/* ===================================================================
   ریسپانسیو
=================================================================== */
@media (max-width: 960px){
  .product-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px){
  .favorites-page{ padding: 20px 16px 48px; }
  .product-grid{ grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .page-btn{ width: 34px; height: 34px; font-size: 12px; }
  .page-number{ min-width: 34px; height: 34px; font-size: 12.5px; }
}